package com.test.learnaidl.binderimp;

import android.os.RemoteException;
import android.util.Log;

import com.test.learnaidl.PersonInterface;

public class PersonImpl extends PersonInterface.Stub {
    private static String TAG = "服务端 AIDLBinderPoolService PersonImpl > ";
    private String mName = "服务端默认值";
    private int mAge = 20;

    @Override
    public void setName(String name) throws RemoteException {
        mName = name;
        Log.i("==",TAG+"setName name = "+name);
    }

    @Override
    public String getName() throws RemoteException {
        return mName;
    }

    @Override
    public void setAge(int age) throws RemoteException {
        mAge = age;
        Log.i("==",TAG+"setAge name = "+age);

    }

    @Override
    public int getAge() throws RemoteException {
        return mAge;
    }
}
